import * as React from 'react';
import classNames from 'classnames';

class Button extends React.Component<any, any> {
  static defaultProps = {
    loading: false,
    ghost: false,
    block: false,
    htmlType: 'button',
  };

  private buttonNode: HTMLElement | null;

  constructor(props: any) {
    super(props);
    this.state = {
      loading: props.loading,
    };
  }

  renderButton = () => {
    const { htmlType, ...rest } = this.props;

    const classes = classNames('my-btn',{})
    
    const buttonNode = (<button type={htmlType} className={classes}>{this.props.children}</button>);
    return buttonNode;
  }
  render(){
    return this.renderButton();
  }
}
export default Button;
